<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" href="/css/bootstrap.css">
    <link rel="stylesheet" href="/css/bootstrap-theme.css">
    <script src="/js/jquery-3.6.0.js" type="application/javascript"></script>
    <script src="/js/bootstrap.min.js" type="application/javascript"></script>
    <!--    以上为外部导入的样式和js脚本-->
    <link rel="stylesheet" href="/css/publishCss.css">
    <title>问题发布</title>
</head>
<body>
<div th:insert="navigation :: nav"></div>
    <div class="container-fluid" id="box1">
        <div class="row">
            <div class="col-lg-9 col-md-12 col-sm-12">
                <span class="glyphicon glyphicon-pushpin btn-lg" aria-hidden="true"></span>
                <h3 style="display: inline-block">问题发布</h3>
                <hr>
                <form action="/publish" method="post">
                    <input type="hidden" name="id" th:value="${id}">
                    <div class="form-group">
                        <label for="title">问题标题（简单扼要）</label>
                        <input type="text" class="form-control" id="title" name="title" th:value="${title}" placeholder="问题标题......">
                    </div>
                    <br>
                    <div class="form-group">
                        <label for="description">问题补充</label>
                        <textarea class="form-control" name="description" th:text="${description}" id="description" cols="30" rows="10"></textarea>
                    </div>
                    <br>
                    <div class="form-group">
                        <label for="tags">添加标签</label>
                        <input type="text" class="form-control" id="tags" name="tags" placeholder="输入标签，以逗号分隔">
                    </div>
                    <span class="alert alert-danger col-lg-9 col-md-12 col-sm-12 col-xs-12" role="alert" th:text="${error}" th:if="${error != null}"></span><br>
                    <button type="submit" class="btn btn-success btn-publish">发布</button>
                </form>
            </div>
            <div class="col-lg-3 col-md-12 col-sm-12">
                <h3>问题发布指南</h3><br>
                <p>.问题标题：请用精简的语言描述您所想发布的问题，不超过25个字</p>
                <p>.问题补充：详细补充描述您想询问的内容，并提供相关资料</p>
                <p>.选择标签：选择一个或多个合适的标签，用逗号隔开，每个标签不超过十个字</p>
            </div>
        </div>
    </div>
</body>
</html>